package com.joker.aigc.chat.service;

import com.joker.aigc.chat.domain.entity.websocket.WebSocketBaseVo;
import com.joker.aigc.chat.domain.entity.websocket.WebSocketMessageSendVo;

import java.util.List;

public interface PushService {


    // 直接处理消息的类。一切信息。负责找到用户的channel .然后发送给用户
    void sendWebSocket(WebSocketBaseVo<?> msg, Long uid);

    void sendWebSocketAll(WebSocketBaseVo<?> msg, Long skipUid);

    void sendWebSocket(WebSocketBaseVo<?> msg, List<Long> uids);

    // 这个需要单独做处理。用来解耦的
    void sendMessage(WebSocketBaseVo<WebSocketMessageSendVo> msg);

}
